package shoppingCart;

public class ShoppingCartEvent
{
// Define the kinds of changes that can take place
	public static final int ADDED_ITEM = 1;
	public static final int REMOVED_ITEM = 2;
	public static final int CHANGED_ITEM = 3;

// item is the item that is affected
	public ShoppingCartItem item;
	public ShoppingCart items;

// eventType is the kind of change that has taken
// place (add/remove/change)
	public int eventType;

	public ShoppingCartEvent()
	{
	}

	public ShoppingCartEvent(ShoppingCartItem item,
		int eventType)
	{
		this.item = item;
		this.eventType = eventType;
	}
	
	public ShoppingCartEvent(ShoppingCart cart, int eventType){
		items = cart;
		this.eventType = eventType;
	}
}
